package com.hjw.service.impl;

import com.hjw.dao.CommentDao;
import com.hjw.entity.Comment;
import com.hjw.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @创建时间：2025-04-27
 * @文件名称：satoken_sobuk - com.hjw.service.impl
 */
@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentDao commentDao;

    @Override
    public int addComment(Map<String, Object> map) {
        return commentDao.addComment(map);
    }

    @Override
    public int deleteComment(int id) {
        return commentDao.deleteComment(id);
    }

    @Override
    public List<Comment> getComment(Map<String, Object> map) {
        return commentDao.getComment(map);
    }

}

